class Person{

}
class Animal{}
class Dog{
    public void func1(){}
    public void func2(){}
    public void func3(){}

}
public class Test {
    public static void func(Object obj) {

    }

    public static void main(String[] args) {
        func(new Person());
        func(new Animal());
        func(new Dog());
        Dog dog = new Dog();
        dog.func1();
        dog.func2();
        dog.func3();
        System.out.println("================");
        new Dog().func1();
        new Dog().func2();
        new Dog().func3();
    }
}
